Optimal. Leaf size=13 \[ -\cot (x)-\frac {\cot ^3(x)}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3254, 3852}
\begin {gather*} -\frac {1}{3} \cot ^3(x)-\cot (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3254
Rule 3852
Rubi steps
\begin {align*} \int \frac {1}{\left (1-\cos ^2(x)\right )^2} \, dx &=\int \csc ^4(x) \, dx\\ &=-\text {Subst}\left (\int \left (1+x^2\right ) \, dx,x,\cot (x)\right )\\ &=-\cot (x)-\frac {\cot ^3(x)}{3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 17, normalized size = 1.31 \begin {gather*} -\frac {2 \cot (x)}{3}-\frac {1}{3} \cot (x) \csc ^2(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 14, normalized size = 1.08
method | result | size |
default | \(-\frac {1}{3 \tan \left (x \right )^{3}}-\frac {1}{\tan \left (x \right )}\) | \(14\) |
risch | \(\frac {4 i \left (3 \,{\mathrm e}^{2 i x}-1\right )}{3 \left ({\mathrm e}^{2 i x}-1\right )^{3}}\) | \(22\) |
norman | \(\frac {-\frac {1}{24}-\frac {3 \left (\tan ^{2}\left (\frac {x}{2}\right )\right )}{8}+\frac {3 \left (\tan ^{4}\left (\frac {x}{2}\right )\right )}{8}+\frac {\left (\tan ^{6}\left (\frac {x}{2}\right )\right )}{24}}{\tan \left (\frac {x}{2}\right )^{3}}\) | \(34\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 14, normalized size = 1.08 \begin {gather*} -\frac {3 \, \tan \left (x\right )^{2} + 1}{3 \, \tan \left (x\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 25 vs.
\(2 (11) = 22\).
time = 0.41, size = 25, normalized size = 1.92 \begin {gather*} -\frac {2 \, \cos \left (x\right )^{3} - 3 \, \cos \left (x\right )}{3 \, {\left (\cos \left (x\right )^{2} - 1\right )} \sin \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 34 vs.
\(2 (10) = 20\).
time = 0.48, size = 34, normalized size = 2.62 \begin {gather*} \frac {\tan ^{3}{\left (\frac {x}{2} \right )}}{24} + \frac {3 \tan {\left (\frac {x}{2} \right )}}{8} - \frac {3}{8 \tan {\left (\frac {x}{2} \right )}} - \frac {1}{24 \tan ^{3}{\left (\frac {x}{2} \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 14, normalized size = 1.08 \begin {gather*} -\frac {3 \, \tan \left (x\right )^{2} + 1}{3 \, \tan \left (x\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.25, size = 10, normalized size = 0.77 \begin {gather*} -\frac {\mathrm {cot}\left (x\right )\,\left ({\mathrm {cot}\left (x\right )}^2+3\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________